package com.model;

import java.io.Serializable;

/**
 * 试卷类
 */
public class Exam implements Serializable {

    private static final long serialVersionUID = -8225756994030208236L;
    private int id;
    private String question;
    private String answers;
    private String rightAnswer;

    public Exam() {
    }

    public Exam(int id, String question, String answers, String rightAnswer) {
        this.id = id;
        this.question = question;
        this.answers = answers;
        this.rightAnswer = rightAnswer;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswers() {
        return answers;
    }

    public void setAnswers(String answers) {
        this.answers = answers;
    }

    public String getRightAnswer() {
        return rightAnswer;
    }

    public void setRightAnswer(String rightAnswer) {
        this.rightAnswer = rightAnswer;
    }

    @Override
    public String toString() {
        return "Exam{" +
                "id='" + id + '\'' +
                ", question='" + question + '\'' +
                ", answers='" + answers + '\'' +
                ", rightAnswer='" + rightAnswer + '\'' +
                '}';
    }
}
